package com.lt.experiment03.mission03;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.experiment03.mission03
 * @ClassName Test
 * @Description to do
 * @date 2021/10/17 19:52
 */
public class Test {
    public static void main(String[] args) {
        try {
            Connection conn = DBHelperSingleton.getInstance().getConnection();
            PreparedStatement pr = DBHelperSingleton.getInstance().getps(conn,"select * from strudent");
            ResultSet rs = pr.executeQuery("select * from strudent");
            System.out.println(rs);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
